{{>header}}
<header>
    <div class="nav">
        <div class="logo">
            <h2><a class="bk" href="/">Bookmarkus</a></h2>
        </div>
        <div class="menu">
            <a class="m" href="/profil"><b>{{user.user}} 😸</b></a>
            <a class="spesial" href="/input">Input</a>
            <a class="m" href="/logout">Logout</a>
        </div>
    </div>
</header>
    <div id="content">
        <div class="kiri">
            <h3>{{user.user}} profile</h3>

            <dl>
                <dt>Username</dt>
                <dd>{{ user.user }}</dd>
                <dt>Role</dt>
                <dd>{{ user.role }}</dd>
                <dt>Password</dt>
                <dd><a id="gantiPwd" class="red" href="#gp">ganti</a></dd>
                <div id="gp">
                    <form action="/edit-user" method="post">
                        <input type="hidden" name="id" value="{{data._id}}">
                        <label for="pwdlama">Password lama :</label>
                        <input type="password" name="passlama" id="passlama">
                        <label for="pwdbaru">Password baru :</label>
                        <input type="password" name="passbaru" id="passlama"><br />
                        <input type="submit" value="Ganti">
                    </form>
                </div>                
            </dl>

            <br />
            <h3>{{user.user}} bookmarks</h3>
            <p>{{user.user}} memiliki {{#each sum}}<a class="red" href="/">{{url}}</a>{{/each}} bookmarks dengan {{ctags}} tags</p>
            <br />
            <p>Ekspor data dalam format JSON. <a class="red" href="/ekspor">Download</a></p>

        </div>
        <div class="kanan">
            <div class="mencari">
                <form action="/cari" method="get">
                    <input class="cari" type="text" name="q"><input type="submit" class="login__but" value="Cari">
                </form>
            </div>
        
            <div class="tagslist">
            </div>
        </div>
        </div>
{{>footer}}